import Vue from 'vue'
import Router from 'vue-router'
import index from '@/view/index'
import my from '@/view/my'
import login from '@/view/login'
import setstings from '@/view/setstings'
import footers from '@/components/footers'
import headers from '@/components/headers'
import bookrack from '@/view/bookrack'
import search from '@/view/search'
import particulars from '@/view/particulars'
import vip from '@/view/vip'
import hotbook from '@/view/hotbook'
import soursedetails from '@/view/soursedetails'
import boutiqueDetails from '@/view/boutiqueDetails'
import xiaokebook from '@/view/xiaokebook'
import singlebook from '@/view/singlebook'
import Boutique from '@/view/Boutique'
import necessarily from '@/view/necessarily'
import categoryList from '@/components/categoryList'
import recommend from '@/components/recommend'

Vue.use(Router)

export default new Router({
  routes: [
/*    {
      path: '/',
      redirect: '/view/index',
      component: index
    },*/
    {
      path: '/view/index',
      name: 'index',
      component: index
    },
    {
      path: '/view/my',
      name: 'my',
      component: my
    },
    {
      path: '/view/bookrack',//书架
      name: 'bookrack',
      component: bookrack
    },
    {
      path: '/view/login',//登录
      name: 'login',
      component: login
    },
    {
      path: '/view/setstings',//设置
      name: 'setstings',
      component: setstings
    },
    {
      path: '/view/particulars',//听书详情
      name: 'particulars',
      component: particulars
    },
    {
      path: '/view/soursedetails',//小课详情
      name: 'soursedetails',
      component: soursedetails
    },
    {
      path: '/view/boutiqueDetails',//精品课详情
      name: 'boutiqueDetails',
      component: boutiqueDetails
    }
    ,
    {
      path: '/components/footers',//footer
      name: 'footers',
      component: footers
    },
    {
      path: '/components/headers',//header
      name: 'headers',
      component: headers
    }
    ,
    {
      path: '/view/search',//搜索
      name: 'search',
      component: search
    }
    ,
    {
      path: '/components/categoryList',//更多详情列表
      name: 'categoryList',
      component: categoryList
    },
    {
      path: '/view/vip',//vip
      name: 'vip',
      component: vip
    },
    {
      path: '/view/hotbook',//vip
      name: 'hotbook',
      component: hotbook
    },
    {
      path: '/view/xiaokebook',//密读列表
      name: 'xiaokebook',
      component: xiaokebook
    },
    {
      path: '/view/Boutique',//精品课列表
      name: 'Boutique',
      component: Boutique
    },
    {
      path: '/view/necessarily',//必听书单列表
      name: 'necessarily',
      component: necessarily
    },
    {
      path: '/view/singlebook',//必听书单列表详细
      name: 'singlebook',
      component: singlebook
    },
    {
      path: '/components/recommend',//每日听书
      name: 'recommend',
      component: recommend
    }
  ]
})
